<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jTwitter - Your fully extensive Twitter API wrapper</title>
<script type="text/javascript" src="lib/jquery/jquery-1.3.2.js"></script>
<script type="text/javascript" src="lib/jquery.jTwitter/jquery.jtwitter.js"></script>
<script type="text/javascript" src="lib/jquery.jTwitter/jquery.jtwitterApi.js"></script>
<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
		 
		$(document).jtwitter( 'lib/jquery.jTwitter/TwitterService.php',
		{
			defaultTimeline: 'friends',
			autoFetch: false,
			user: {
				username: 'rubybabylove',
				password: 'laurellie'
			},
			resultLocations: {
				
				verifyCredentials: null,
				endSession: null,
				getRateLimit: '#jtwitter_rate_list',
				getFollowing: '#jtwitter_following_list',
				getFollowers: '#jtwitter_followers_image_list',
				getFriendsTimeline: '#jtwitter_friends_timeline_list',
				getPublicTimeline: '#jtwitter_public_timeline_list',
				getUserTimeline: '#jtwitter_users_timeline_list',
				getReplies: '#jtwitter_replies_timeline_list',
				getSentMessages: '#jtwitter_sent_messages_list',
				getFavorites: '#jtwitter_favorites_list',
				getAllFollowers: '#jtwitter_all_follower_list',
				getAllFriends: '#jtwitter_all_friends_list',
				getMessages: '#jtwitter_messages_list',
				
				deleteMessage: null,
				deleteFavorite: null,
				unfollowMember: null,
				unblockMember: null,
				
				followMember: null,
				createMessage: null,
				createFavorite: null,
				blockMember: null,
				
				postTweet: null,
				updateDevice: null,
				updateLocation: null,
				updateProfile: null,
				updateProfileImage: null,
				updateBackgroundImage: null,
				updateProfileColors: null,
				
				confirmFollow: null,
				searchKeywords: '#jtwitter_search_keywords_list',
				searchTrends: '#jtwitter_search_trends_list',
				showTweet: null
			}
		});
		
		
		$('#btn_friends_timeline').click(function(){
			$.jtwitter.getFriendsTimeline();
			return false;
		});
		$('#btn_public_timeline').click(function(){
			$.jtwitter.getPublicTimeline();
			return false;
		});
		$('#btn_user_timeline').click(function(){
			$.jtwitter.getUserTimeline();
			return false;
		});
		$('#btn_replies').click(function(){
			$.jtwitter.getReplies();
			return false;
		});	
		$('#btn_messages').click(function(){
			$.jtwitter.getMessages();
			return false;
		});		
		$('#btn_sent_messages').click(function(){
			$.jtwitter.getSentMessages();
			return false;
		});		
		$('#btn_favorites').click(function(){
			$.jtwitter.getFavorites();
			return false;
		});		
		$('#btn_followers').click(function(){
			$.jtwitter.getFollowers();
			return false;
		});
		$('#btn_rate').click(function(){
			$.jtwitter.getRateLimit();
			return false;
		});
		$('#btn_search_keywords').click(function(){
			$.jtwitter.searchKeywords($('#txt_query').val());
			return false;
		});
		$('#btn_search_trends').click(function(){
			$.jtwitter.searchTrends();
			return false;
		});
		
	
		
		$.each($.jtwitterApiMethods(), function(i, obj){
			//$('#jtwitter_api').append( '<li>'+obj.method+' - '+ obj.desc +'</li>' );
			
		});
		
	
	
});
</script>
</head>
<body>

	<h1>jTwitter Project Page</h1>
		<h2>API Methods</h2>
        <ol id="jtwitter_api">
  <li><a href="#btn_rate">getRateLimit</a> - Checks to see how many hourly hits on the API are left for your account</li>
  <li>deleteTweet - Removes a single status update from the Twitter timeline.</li>
  <li>getFollowing - Returns a list of people you follow.</li>
  <li><a href="#btn_followers">getFollowers</a> -  Returns a list of people who follow you.</li>
  <li>getFriendsFollowers - Returns the most recent status updates made by people you follow.</li>
  <li><a href="#btn_friends_timeline">getFriendsTimeline</a> - Returns the most recent status updates made by people you follow.</li>
  <li><a href="#btn_public_timeline">getPublicTimeline</a> - Returns the most recent status updates from public accounts with custom pictures.</li>
  <li><a href="#btn_user_timeline">getUserTimeline</a> - Returns the most recent status updates for a specific account.</li>
  <li><a href="#btn_replies">getReplies</a> - Returns the most recent status updates from people who have replied to you.</li>
  <li>showTweet - Returns a single status update with the given ID.</li>
  <li>postTweet - Creates a new status update authored by you.</li>
  <li><a href="#btn_messages">getMessages</a> - Returns the most recent direct messages you have received.</li>
  <li>deleteMessage - Deletes an existing direct message received by you.</li>
  <li>createMessage - Creates a new direct message sent from you to another user.</li>
  <li><a href="#btn_sent_messages">getSentMessages</a> - Returns the most recent direct messages you have sent.</li>
  <li><a href="#btn_favorites">getFavorites</a> - Returns a list of all status updates you’ve flagged as favorites.</li>
  <li>createFavorite - Flags a status update as a favorite.</li>
  <li>deleteFavorite - Removes an existing flag on one of the authenticating member’s favorite status updates.</li>
  <li>followMember - Creates a new follow relationship between you and another Twitter member.</li>
  <li>unfollowMember - Removes an existing follow relationship with another Twitter member.</li>
  <li>confirmFollow - Verifies whether one Twitter member is following another.</li>
  <li>blockMember - Keeps another member from following your updates.</li>
  <li>unblockMember - Allows another member to once again follow your updates.</li>
  <li>getAllFollowers - Gets the full list of people who follow you.</li>
  <li>getAllFriends - Gets the full list of people you follow.</li>
  <li>endSession - Tells Twitter that your application is finished using your access credentials</li>
  <li><a href="#btn_verify">verifyCredentials</a> - Confirms that the supplied user account credentials are valid.</li>
  <li>updateDevice - Selects a device for you to use to receive updates.</li>
  <li>updateLocation - Changes the location information stored in your profile.</li>
  <li>updateProfile - Sets the values of selected fields found in the “Account” tab under the settings on the Twitter website.</li>
  <li>updateProfileImage - Changes the color scheme applied to the authenticating member’s profile page.</li>
  <li>updateBackgroundImage - Changes the background image on the authenticating user’s member profile web page.</li>
  <li>updateProfileColors - Changes the color scheme applied to the authenticating member’s profile page.</li>
  <li><a href="#btn_search_keywords">searchKeywords</a> - Searches for keyword matches in tweet content.</li>
  <li><a href="#btn_search_trends">searchTrends</a> - Returns the current top keyword trends in the public timeline.</li>
</ol>

	
	
	
	
	
	
		<div class="grid_3">
			<h4>Verify Credentials</h4>

	        <form id="form1" method="post" action="">
		     	<p>
	           <label for="txt_user">User:</label>
	           <input name="txt_user" id="txt_user" type="text"/>
	         </p>
	         <p>
	         <label for="txt_pass">Pass:</label>
	           <input name="txt_pass" id="txt_pass" type="password"/>
	         </p>
	           <input name="btn_verify" id="btn_verify" value="Submit" type="button"/>

	       </form>
			<ol class="jtwitter-tweets" id="jtwitter_search_trends_list"></ol>
		</div>


		<div class="grid_3">
			<h4>Rate Status</h4>
			<a href="#" id="btn_rate">Get Rate Limit</a>
		  <ol class="jtwitter-tweets" id="jtwitter_rate_list"></ol>
		</div>

		<div class="grid_3">
			<h4>Trends</h4>
			<a href="#" id="btn_search_trends">Get Trends</a>
		  <ol class="jtwitter-tweets" id="jtwitter_search_trends_list"></ol>
		</div>
		<div class="grid_3">
			<h4>Search By Keyword</h4>

			<form id="form1" method="post" action="">
		     	<p>
	           <label for="txt_query">Search:</label>
	           <input name="txt_query" id="txt_query" type="text"/>
	           <input name="btn_search_keywords" id="btn_search_keywords" value="Submit" type="button"/>
	         </p>
	       </form>
			<ol class="jtwitter-tweets" id="jtwitter_search_keywords_list"></ol>
		</div>
		<div class="clear"></div>


		<div class="grid_6">
			<h4>Friends Timeline</h4>
			<a href="#" id="btn_friends_timeline">Get Friends Timeline</a>
		  <ol class="jtwitter-tweets" id="jtwitter_friends_timeline_list"></ol>
		</div>
		<div class="grid_6">
			<h4>Public Timeline</h4>
			<a href="#" id="btn_public_timeline">Get Public Timeline</a>
		  <ol class="jtwitter-tweets" id="jtwitter_public_timeline_list"></ol>
		</div>
		<div class="clear"></div>



		<div class="grid_6">
			<h4>User Timeline</h4>
			<a href="#" id="btn_user_timeline">Get Users Timeline</a>
		  <ol class="jtwitter-tweets" id="jtwitter_users_timeline_list"></ol>
		</div>
		<div class="grid_6">
			<h4>@Replies Timeline</h4>
			<a href="#" id="btn_replies">Get @Replies Timeline</a>
		  <ol class="jtwitter-tweets" id="jtwitter_replies_timeline_list"></ol>
		</div>
		<div class="clear"></div>


		<div class="grid_6">
			<h4>Messages List</h4>
			<a href="#" id="btn_messages">Get Messages</a>
		  <ol class="jtwitter-tweets" id="jtwitter_messages_list"></ol>
		</div>
		<div class="grid_6">
			<h4>Sent Messages List</h4>
			<a href="#" id="btn_sent_messages">Get Sent Messages</a>
		  <ol class="jtwitter-tweets" id="jtwitter_sent_messages_list"></ol>
		</div>
		<div class="clear"></div>



		<div class="grid_6">
			<h4>Favorites</h4>
			<a href="#" id="btn_favorites">Get Favorites</a>
		  <ol class="jtwitter-tweets" id="jtwitter_favorites_list"></ol>
		</div>

		<div class="grid_6">
			<h4>Followers</h4>
			<a href="#" id="btn_followers">Get Followers</a>
		  <ol class="jtwitter-tweets" id="jtwitter_followers_image_list"></ol>
		</div>
		<div class="clear"></div>




</body>
</html>
